package com.eonmind.vip;


import com.eonmind.common.contract.exception.handler.GlobalExceptionHandler;
import com.mongoplus.annotation.MongoMapperScan;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Import;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

@Slf4j
@EnableFeignClients(basePackages = {"com.eonmind"})
@EnableDiscoveryClient
@SpringBootApplication(scanBasePackages = {"com.eonmind.vip", "com.eonmind.common"})
@MongoMapperScan("com.eonmind.vip.mapper")
@Import(GlobalExceptionHandler.class)
public class VipApplication {
    public static void main(String[] args) {
        SpringApplication.run(VipApplication.class, args);
        log.info("AiApplication started");
    }
}
